/**
 * 
 */
package com.iuie.ns.web.tags;

import java.io.IOException;
import java.io.StringWriter;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;

/**
 * @description tbody
 * @author lj
 * @createTime 2016年10月5日 下午7:30:22
 */
public class TableBodyTag extends SimpleTagSupport {

	
	@Override
	public void doTag() throws JspException, IOException {
		String str="";
		if(getJspBody()!=null){
			StringWriter writer=new StringWriter();
			getJspBody().invoke(writer);
			str = writer.toString().trim();
		}
		TableTag tableTag = (TableTag) getParent();
		tableTag.setBody(str);
	}
}
